import tools
while True:
    tools.show_menu()
    action_str = input('请选择需要操作的指令:')

    if action_str in ['1', '2', '3']:
        if action_str == "1":
            tools.new_card()
        elif action_str == '2':
            tools.show_all()
        else:
            tools.search_card()
    elif action_str == '0':
        print('Bye')
        break
    else:
        print('您选择的指令不存在,请重新选择!')
